﻿#region Copyright information
// 
// Copyright © 2012-2013 Yongkee Cho. All rights reserved.
// 
// This code is a part of the SubnetworkToolkit and governed under the terms of the
// GNU Lesser General  Public License (LGPL) version 2.1 which accompanies this distribution.
// For more information on the LGPL, please visit http://bol.codeplex.com/license.
// 
// - Filename: Options.cs
// - Author: Yongkee Cho
// - Email: yongkeecho@outlook.com
// - Date Created: 2013-01-30 2:55 PM
// - Last Modified: 2013-01-30 3:21 PM
// 
#endregion
using System.Text;
using BOL.Algorithms.Clustering;
using CommandLine;

namespace SubnetworkToolkit.Cluster
{
    public class Options
    {
        [Option("g", "gmt file", HelpText = "Specify a gmt file.")]
        public string GmtFile { get; set; }

        [Option("m", "metric", HelpText = "Specify a distance metric.")]
        public DistanceMetric Metric { get; set; }

        [Option("l", "linkage criterion", HelpText = "Specify a linkage criterion.")]
        public HierarchicalClusterer<bool>.LinkageCriterion LinkageCriterion { get; set; }

        [Option("d", "depth", HelpText = "Specify a depth.")]
        public int Depth { get; set; }

        [Option("v", "verbose", HelpText = "Specify if.")]
        public bool IsVerbose { get; set; }

        [HelpOption(HelpText = "Dispaly this help screen.")]
        public string GetUsage()
        {
            var help = new StringBuilder();
            help.AppendLine("Usage : sc [OPTION]");
            help.AppendLine("Options:");
            help.AppendLine("    -g           gmt file");
            help.AppendLine("    -m           [BrayCurtis|Chord|Dot|Euclidean|Hellinger|Intersection|Manhattan|MeanManhattan|PatternDifference|ShapedDifference|SizedDifference|Vari]");
            help.AppendLine("    -l           [Average|Centroid|Complete]");
            help.AppendLine("    -d           depth");
            help.AppendLine("    -v           verbose");
            return help.ToString();
        }
    }
}
